﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared.Dto.User
{
    /// <summary>
    /// 后台账号登录
    /// </summary>
    public class UserLoginDto
    {
        [JsonProperty(PropertyName ="username")]
        [Required(ErrorMessage = "请填写账号")]
        public string Username { get; set; }

        [JsonProperty(PropertyName ="password")]
        [Required(ErrorMessage = "请填写密码")]
        public string Password { get; set; }

        [JsonProperty(PropertyName ="captcha")]
        [Required(ErrorMessage = "请填写验证码")]
        public string Captcha { get; set; }

        [JsonProperty(PropertyName ="token")]
        [Required(ErrorMessage = "缺少token参数")]
        public string Token { get; set; }
    }
}
